// NewButton.js
import React from 'react';

export default class NewButton extends React.Component {
    constructor(props) {
        super(props)
        this.state = {
        }
    }
    uplist = () => {
        console.log("uplist");
    }
    onMouseEnter = () => {
        console.log("onMouseEnter");
    }
    render() {
        const { OriginCom, onClick, ...restProps } = this.props;
        console.log("🚀 ~ NewButton ~ render ~ this.props:", this.props)
        return (
            <div className="new-button">
                <span className="new-button-icon">⭐</span>
                <OriginCom {...restProps} onClick={this.uplist} onMouseEnter={this.onMouseEnter} /> {/* 传递其他 props 和自定义 onClick */}
            </div>
        );
    }
}
